import 'package:jicaimao_flutter/entity/base_model.dart';
import 'package:json_annotation/json_annotation.dart';

part 'upload_image_entity.g.dart';

@JsonSerializable()
class UploadImageModel extends BaseModel {
  UploadImageModelReal result;

  UploadImageModel(this.result) : super("", "");

  factory UploadImageModel.fromJson(Map<String, dynamic> json) =>
      _$UploadImageModelFromJson(json);
}

@JsonSerializable()
class UploadImageModelReal {
  String url;

  UploadImageModelReal({this.url});

  factory UploadImageModelReal.fromJson(Map<String, dynamic> json) =>
      _$UploadImageModelRealFromJson(json);
}
